package com.typhoon.spring_boot_demo1.service;

import com.typhoon.spring_boot_demo1.dto.SearchResultDto;
import com.typhoon.spring_boot_demo1.request.Operator;

import java.util.List;

/**
 * 查询接口
 */
public interface ISearch {

    /**
     * 查询
     *
     * @param key
     * @param operator
     * @return
     */
    List<SearchResultDto> search(String key, Operator operator);

}
